import request from '@/utils/request'

// 审核通过
export function passAuditApi(id) {
  return request({
    url: `/audit/passAudit/${id}`,
    method: 'put'
  })
}

// 审核驳回
export function rejectAuditApi(id, auditAdvice) {
  return request({
    url: `/audit/rejectAudit/${id}`,
    method: 'put',
    params: { auditAdvice }
  })
}

// 根据id获取校园或车商名
export function getNameApi(id) {
  return request.get(`/campusOrShop/getName/${id}`)
}
